export default {
  showDataInfoBar: true,
  loadDefault: true,
  deviewCodeName: 'tree_exp_view',
  deviewId: '4fbbe01f5a7c9ccaa41e3b914fa8b5c6',
  accUserMode: 2,
  caption: '自动化',
  codeName: 'psde_logic_tree_exp_view',
  appDataEntityId: 'web.psdelogic',
  appViewEngines: [
    {
      engineCat: 'VIEW',
      engineType: 'TreeExpView',
      id: 'engine',
    },
  ],
  appViewLogics: [
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        actionAfterWizard: 'DEFAULT',
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_NEWDATA',
        id: '新建数据',
      },
      builtinLogic: true,
      id: 'newdata',
    },
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        editMode: true,
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_OPENDATA',
        id: '打开数据',
      },
      builtinLogic: true,
      id: 'opendata',
    },
  ],
  controls: [
    {
      title: '规则',
      xdataControlName: 'treeexpbar_tree',
      enableCounter: true,
      autoLoad: true,
      showBusyIndicator: true,
      appViewRefs: [
        {
          realTitle: '自动化规则',
          refAppViewId: 'web.psde_logic_global_flow_grid_view',
          name: 'EXPITEM:all',
          id: 'expitem:all',
        },
        {
          realTitle: '自动化规则',
          refAppViewId: 'web.psde_logic_global_flow_grid_view',
          name: 'EXPITEM:auto',
          id: 'expitem:auto',
        },
        {
          realTitle: '自动化规则',
          refAppViewId: 'web.psde_logic_global_flow_grid_view',
          name: 'EXPITEM:schedule',
          id: 'expitem:schedule',
        },
      ],
      controls: [
        {
          detreeNodeRSs: [
            {
              childDETreeNodeId: 'all',
              parentDETreeNodeId: 'node',
              parentValueLevel: 1,
              searchMode: 3,
              id: '规则 - 全部规则',
            },
            {
              childDETreeNodeId: 'node',
              parentDETreeNodeId: 'root',
              parentValueLevel: 1,
              searchMode: 3,
              id: '默认根节点 - 规则',
            },
            {
              childDETreeNodeId: 'auto',
              parentDETreeNodeId: 'node',
              parentValueLevel: 1,
              searchMode: 3,
              id: '规则 - 自动化规则',
            },
            {
              childDETreeNodeId: 'schedule',
              parentDETreeNodeId: 'node',
              parentValueLevel: 1,
              searchMode: 3,
              id: '规则 - 计划规则',
            },
            {
              childDETreeNodeId: 'immediately',
              parentDETreeNodeId: 'node',
              parentValueLevel: 1,
              searchMode: 3,
              id: '规则 - 即时规则',
            },
          ],
          detreeNodes: [
            {
              nodeValue: 'root',
              text: '默认根节点',
              nodeType: 'ROOT',
              treeNodeType: 'STATIC',
              hasDETreeNodeRSs: true,
              rootNode: true,
              name: '默认根节点',
              id: 'root',
            },
            {
              text: '全部规则',
              navAppViewId: 'web.psde_logic_global_flow_grid_view',
              nodeType: 'all',
              navigateParams: [
                {
                  key: 'n_dynamodelflag_eq',
                  value: '1',
                  rawValue: true,
                  id: 'n_dynamodelflag_eq',
                },
              ],
              sysImage: {
                cssClass: 'fa fa-list-ul',
                glyph: 'xf0ca@FontAwesome',
              },
              treeNodeType: 'STATIC',
              name: '全部规则',
              id: 'all',
            },
            {
              text: '自动化规则',
              navAppViewId: 'web.psde_logic_global_flow_grid_view',
              nodeType: 'auto',
              navigateParams: [
                {
                  key: 'n_logicsubtype_in',
                  value: 'EVENTHOOK,FIELDCHANGEHOOK,WEBHOOK',
                  rawValue: true,
                  id: 'n_logicsubtype_in',
                },
                {
                  key: 'n_dynamodelflag_eq',
                  value: '1',
                  rawValue: true,
                  id: 'n_dynamodelflag_eq',
                },
              ],
              sysImage: {
                cssClass: 'fa fa-font',
                glyph: 'xf031@FontAwesome',
              },
              treeNodeType: 'STATIC',
              name: '自动化规则',
              id: 'auto',
            },
            {
              text: '即时规则',
              nodeType: 'immediately',
              sysImage: {
                cssClass: 'fa fa-paper-plane-o',
                glyph: 'xf1d9@FontAwesome',
              },
              treeNodeType: 'STATIC',
              name: '即时规则',
              id: 'immediately',
            },
            {
              text: '规则',
              nodeType: 'node',
              treeNodeType: 'STATIC',
              hasDETreeNodeRSs: true,
              expanded: true,
              name: '规则',
              id: 'node',
            },
            {
              text: '组织模板',
              nodeType: 'org_temp',
              treeNodeType: 'STATIC',
              name: '组织模板',
              id: 'org_temp',
            },
            {
              text: '计划规则',
              navAppViewId: 'web.psde_logic_global_flow_grid_view',
              nodeType: 'schedule',
              navigateParams: [
                {
                  key: 'n_logicsubtype_eq',
                  value: 'TIMERTASK',
                  rawValue: true,
                  id: 'n_logicsubtype_eq',
                },
                {
                  key: 'n_dynamodelflag_eq',
                  value: '1',
                  rawValue: true,
                  id: 'n_dynamodelflag_eq',
                },
              ],
              sysImage: {
                cssClass: 'fa fa-clock-o',
                glyph: 'xf017@FontAwesome',
              },
              treeNodeType: 'STATIC',
              name: '计划规则',
              id: 'schedule',
            },
          ],
          outputIconDefault: true,
          navViewPos: 'NONE',
          createControlAction: {
            appDEMethodId: 'create',
            appDataEntityId: 'web.psdelogic',
            id: 'create',
          },
          fetchControlAction: {
            appDataEntityId: 'web.psdelogic',
            id: 'fetch',
          },
          getControlAction: {
            appDEMethodId: 'get',
            appDataEntityId: 'web.psdelogic',
            id: 'load',
          },
          removeControlAction: {
            appDEMethodId: 'remove',
            appDataEntityId: 'web.psdelogic',
            id: 'remove',
          },
          updateControlAction: {
            appDEMethodId: 'update',
            appDataEntityId: 'web.psdelogic',
            id: 'update',
          },
          autoLoad: true,
          showBusyIndicator: true,
          codeName: 'tree_exp_view_tree_view',
          controlStyle: 'LIST_TREE',
          controlType: 'TREEVIEW',
          logicName: '自动化规则树导航视图_树视图',
          appDataEntityId: 'web.psdelogic',
          controlLogics: [
            {
              eventNames: 'SELECTIONCHANGE',
              logicTag: 'treeexpbar_tree',
              logicType: 'CUSTOM',
              triggerType: 'CTRLEVENT',
              id: 'treeexpbar_selectionchange',
            },
            {
              eventNames: 'LOAD',
              logicTag: 'treeexpbar_tree',
              logicType: 'CUSTOM',
              triggerType: 'CTRLEVENT',
              id: 'treeexpbar_load',
            },
          ],
          controlParam: {
            id: 'treeexpbar_tree',
          },
          sysPFPluginId: 'list_tree',
          modelId: 'a006646ecc80d685e7844467cee396f2',
          modelType: 'PSDETREEVIEW',
          name: 'treeexpbar_tree',
          id: 'web.psdelogic.tree_exp_view_tree_view',
        },
      ],
      codeName: 'tree_exp_view_treeexpbar',
      controlType: 'TREEEXPBAR',
      appDataEntityId: 'web.psdelogic',
      controlParam: {
        id: 'treeexpbar',
      },
      modelId: 'bfb61fd57e2f59f21c6927564a828f94_treeexpbar',
      modelType: 'PSEXPBAR',
      name: 'treeexpbar',
      id: 'tree_exp_view_treeexpbar',
    },
    {
      groupMode: 'SINGLE',
      quickSearchMode: 1,
      enableQuickSearch: true,
      controlType: 'SEARCHBAR',
      appDataEntityId: 'web.psdelogic',
      controlParam: {
        id: 'searchbar',
      },
      id: 'searchbar',
    },
    {
      caption: '自动化',
      codeName: 'tree_exp_view_captionbar',
      controlType: 'CAPTIONBAR',
      appDataEntityId: 'web.psdelogic',
      controlParam: {},
      name: 'captionbar',
      id: 'tree_exp_view_captionbar',
    },
  ],
  viewLayoutPanel: {
    layoutBodyOnly: true,
    useDefaultLayout: true,
    layoutPanel: true,
    codeName: 'layoutpanel',
    controlStyle: 'APPDETREEEXPVIEW',
    controlType: 'VIEWLAYOUTPANEL',
    appDataEntityId: 'web.psdelogic',
    controlParam: {},
    id: 'layoutpanel',
  },
  title: '自动化',
  viewStyle: 'DEFAULT',
  viewType: 'DETREEEXPVIEW',
  enableDP: true,
  showCaptionBar: true,
  modelId: 'bfb61fd57e2f59f21c6927564a828f94',
  modelType: 'PSAPPDEVIEW',
  name: 'PSDELogictree_exp_view',
  id: 'web.psde_logic_tree_exp_view',
};
